package cn.crm.controller;

import cn.crm.service.SalChanceService;
import cn.crm.service.SysRightService;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/SysRight")
public class SysRightController {
    @Autowired
    private SysRightService sysRightService;
    @PostMapping("/Page")
    public Page getPage(Page page){
        return sysRightService.page(page);
    }
}
